package com.tutu.borrow.config;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * @Program: SpringCloud
 * @Description: 注入bean对象的配置类
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-01 15:10
 **/
@Component
public class BeanConfig {

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
